package com.wzy.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

@RestController
public class PaymentController {
    @Value("${server.port}")
    private String serverPort;

    @RequestMapping("/payment")
    public String payment() {
        return "springCloud+zookeeper>>>>>>>>" + "服务端口为: " + serverPort + " #" + UUID.randomUUID().toString().substring(0, 6);
    }
}
